//
//  ZCXUserPerFirstTableViewCell.m
//  LoveOfPet
//
//  Created by dllo on 15/11/17.
//  Copyright © 2015年 孔维. All rights reserved.
//

#import "ZCXUserPerFirstTableViewCell.h"
#import "ZCXUserDetialView.h"
#define HEIGHT  [[UIScreen mainScreen]bounds].size.height / 667
#define WIDTH   [[UIScreen mainScreen]bounds].size.width / 375
@interface ZCXUserPerFirstTableViewCell ()
@property (nonatomic, retain) ZCXUserDetialView *view;
@end

@implementation ZCXUserPerFirstTableViewCell
- (void)dealloc{
    [_view release];
    [_userdetial release];
    [super dealloc];
}
- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.view = [[ZCXUserDetialView alloc]init];
        [self.contentView addSubview:_view];
        [_view release];
    }
    return self;
}
- (void)layoutSubviews{
    [super layoutSubviews];
    self.view.frame = CGRectMake(0, 0, self.frame.size.width, self.frame.size.height);
}
- (void)setUserdetial:(ZCXUserDetial *)userdetial{
    if (_userdetial != userdetial) {
        [_userdetial release];
        _userdetial = [userdetial retain];
    }
    _view.userDetial = userdetial;
}
- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
